package com.hmall.api.user;

import com.hmall.api.user.fallback.UserClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: wqy
 * @Date: 2025/09/04 11:45
 * @Description:
 */
@FeignClient(name="user-service",path = "/users",fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {
    @PutMapping("/money/deduct")
    void deductMoney(@RequestBody String pw, Integer totalFee);
}

